import xlwings as xw
app = xw.App(visible=False, add_book=False)
workbook = app.books.open('F:\\python\\第4章\\汽车备案信息.xlsx')
worksheet = workbook.sheets['商用车信息']
rng = worksheet.range('A1').expand('table')
cell_nums = rng.count
row_nums = rng.rows.count
col_nums = rng.columns.count
print(cell_nums, row_nums, col_nums)
workbook.close()
app.quit()
